﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Web.Mvc.UI;
using System.Web.Mvc;

namespace OBUCare.Web.Infrastructure
{
    /// <summary>
    /// 控制UI界面上的一些效果，如：Grid的分页，弹出模式、命名列按钮的样式等等。
    /// </summary>
    public static class CommonStyleForUI
    {

        static CommonStyleForUI()
        {
            Grid_PageStyle = GridPagerStyles.NextPrevious | GridPagerStyles.Numeric | GridPagerStyles.PageInput | GridPagerStyles.PageSizeDropDown;
            Grid_PagePosition = GridPagerPosition.Bottom;
            Grid_CurrentPage = 1;
            Grid_Height = 500;
            Grid_PageSize = 10;

            Grid_ButtuonType = GridButtonType.Text;
        }

        //分页的样式
        public static GridPagerStyles Grid_PageStyle { get; set; }
        //分页的位置
        public static GridPagerPosition Grid_PagePosition { get; set; }
        //默认显示第几页
        public static int Grid_CurrentPage { get; set; }
        //可滚动的区域，即Grid显示窗口的高度
        public static int Grid_Height { get; set; }
        //默认显示记录数
        public static int Grid_PageSize { get; set; }



        //按钮的模式
        public static GridButtonType Grid_ButtuonType { get; set; }


       

        
    }
}